package com.zzy.springboot_shiro.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zzy.springboot_shiro.entity.User;
import com.zzy.springboot_shiro.mapper.UserMapper;
import com.zzy.springboot_shiro.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author 邹靓仔
 * @date 2020/3/19 -16:23 -user-perm
 **/
@Service
@Transactional
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Autowired
    private UserMapper userMapper;



    @Override
    public User selectByUserName(String userName) {
        return userMapper.selectByUserName(userName);
    }
}
